-- GENERATED SPELL FOR [Scarlet Beastmaster] --


function spell0_4288(pUnit, Event) --@Exploding Shot,n/a--
pUnit:FullCastSpellOnTarget(7896,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4288', 1000, 1)
end

function spell1_4288(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(6660,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4288', 567, 1)
end

function Sorts_4288(pUnit, Event)
local choix_sorts_4288 = math.random(0, 1)
if choix_sorts_4288 == 0 then
pUnit:RegisterEvent('spell0_4288', 1, 1)
end
if choix_sorts_4288 == 1 then
pUnit:RegisterEvent('spell1_4288', 1, 1)
end
end

function mob4288_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4288', math.random(1500, 3000), 1)
end

function mob4288_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4288_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4288_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4288, 1, 'mob4288_Action')
RegisterUnitEvent(4288, 2, 'mob4288_Leave')
RegisterUnitEvent(4288, 3, 'mob4288_Kill')
RegisterUnitEvent(4288, 4, 'mob4288_Die')
